<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>交通事故列表</title>
		<link rel="stylesheet" type="text/css" href="../resource/css/base.css">
		<s:actionmessage/>
	</head>
	
	<body  oncontextmenu="return false;" leftmargin="8" topmargin="8">
		<div class="tip">
			<span>当前位置:</span>交通事故管理&nbsp;&gt;&nbsp;
		</div>
		<!--  搜索列表  -->
		<s:form name="infoForm" action="load" namespace="/costAccident">
			<table width='98%' border='0' cellpadding='1' cellspacing='1'
				bgcolor='#CBD8AC' align="center" style="margin-top: 8px">
				<tr bgcolor='#EEF4EA'>
					<td align='center'>
						<table width="98%" height="26" border='0' cellpadding='0'
							cellspacing='0'>
							<tr>
								<td width='15%' align="right">
									车牌号:
								</td>
								<td width='25%' align="left">
									<s:textfield name="truckId"/>
								</td>
								<td width='15%' align="right">
									驾驶员:
								</td>
								<td width='25%' align="left">
									<s:textfield name='driverId'/>
								</td>
								<td>
									<input type="image" src="../resource/image/search.gif"
										height="20" border="0" class="np" onclick="javascript:document.forms[0].submit();" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!--  内容列表   -->
			<table width="98%" border="0" cellpadding="2" cellspacing="1"
				bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="16">
						&nbsp;交通事故列表&nbsp;
					</td>
				</tr>
				<!-- 表头 -->
				<tr align="center" bgcolor="#FAFAF1" height="22">
					 <td width="2%">ID</td>
					 <td width="2%">选择</td>
					 <td width="7%">货运单号</td>
					 <td width="6%">车牌号</td>
					 <td width="5%">驾驶员</td>
					 <td width="8%">事发时间</td>
					 <td width="7%">地点</td>
					 <td width="5%">损失</td>
					 <td width="4%">伤亡</td>
					 <td width="5%">责任</td>
					 <td width="5%">罚款</td>
					 <td width="6%">索赔差额</td>
					 <td width="5%">录入人</td>
					 <td width="8%">录入时间</td>
					 <td width="5%">操作</td>
				</tr>
				<s:iterator value="costAccidents" status="vo">
					<!-- 信息 -->
					<tr align='center' bgcolor="#FFFFFF"
						onMouseMove="javascript:this.bgColor='#FCFDEE';"
						onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
						<td>
							<s:property value="#vo.count" />
						</td>
						<td>
							<input name="id" type="checkbox" id="id"
								value="<s:property value="id"/>" class="np">
						</td>
						<td>
							<s:property value="orderId" />
						</td>
						<td>
							<s:property value="truckId" />
						</td>
						<td>
							<s:property value="driverId" />
						</td>
						<td>
							<s:date name="accidentTime" format="yyyy-MM-dd"/>
						</td>
						<td>
							<s:property value="location" />
						</td>
						<td>
							<s:property value="losses" />
						</td>
						<td>
							<s:property value="toll" />
						</td>
						<td>
							<s:if test="liability==1">
								全责
							</s:if>
							<s:elseif test="liability==2">
								半责
							</s:elseif>
							<s:else>
								无责
							</s:else>
						</td>
						<td>
							<s:property value="fineCharge" />
						</td>
						<td>
							<s:property value="claimFee" />
						</td>
						<td>
							<s:property value="entryUser" />
						</td>
						<td>
							<s:date name="entryTime" format="yyyy-MM-dd"/>
						</td>
						<td>
							<a href="updatePre.action?id=<s:property value="id"/>">编辑</a>
						</td>
					</tr>
				</s:iterator>
				<!-- 引用统一的操作、分页功能页面
					 其中的url参数a、q、d分别用来传入增、查、删功能的action -->
				<jsp:include page="/WEB-INF/pages/frame/page.jsp?a=addPre&q=load&d=delete&cols=16"/>
			</table>
		</s:form>
	</body>
</html>
